<template lang="pug">
  keep-alive
    kalix-table(bizKey="exammaterial" title="考试素材列表"
      v-bind:targetURL="targetURL" v-bind:tableFields="tableFields" bizSearch="ExamMaterialSearch"
      v-bind:btnList="btnList" v-bind:toolbarBtnList="toolbarBtnList" ref="exammaterialTable")
</template>

<script type="text/ecmascript-6">
  import {ExamMaterialURL} from '../config.toml'
  import {ExamAttachmentBtnList} from './config'

  export default {
    name: 'kalix-exam-exammaterial',
    data() {
      return {
        targetURL: ExamMaterialURL,
        btnList: ExamAttachmentBtnList,
        tableFields: [
          {prop: 'name', label: '考试名称'},
          {prop: 'subject', label: '考试科目'},
          {prop: 'stem', label: '考题'},
          {prop: 'attachmentCount', label: '上传附件数'}
        ],
        toolbarBtnList: [
          {id: 'add', isShow: false}
        ]
      }
    },
    methods: {

    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">
</style>
